import Vue from 'vue';
import App from './App.vue';
import router from './router/index.js';
import store from './store/store.js';
import { request } from './util/http.js'
import 'babel-polyfill'
import '../static/iconfont/iconfont.css';
import '../static/style/reset.css';
import './common/style/common.css';

import './mock/mock.js'; //此部分引入的是我们所编写的mockjs文档

// 将组件插到html文档中
let root = document.createElement('div');
document.body.appendChild(root);

Vue.prototype.$axios = request;

// 加入到vue实例中
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount(root);